import { ConfigProvider, Button, Radio } from 'antd';

const AntDTheme = () => {
    return (<div>

        <ConfigProvider theme={{
            token: {
                // colorPrimary: 'red',
            },
            components: {
                Button: {
                    colorPrimary: 'green',
                    colorPrimaryHover: 'blue',
                    borderRadius: 3
                },
            }
        }}>

            <Button type="primary">全局更改了主题色</Button>
            <Radio.Group>
                <Radio value={1}>A</Radio>
                <Radio value={2}>B</Radio>
                <Radio value={3}>C</Radio>
                <Radio value={4}>D</Radio>
            </Radio.Group>

        </ConfigProvider>
    </div>);
}

export default AntDTheme;